import { createApp } from 'vue'
// import './style.css'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// @ts-expect-error忽略当前文件ts类型的检测否则有红色提示(打包会失败) @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// svg 插件需要配置代码
import 'virtual:svg-icons-register'
import gloablComponent from '@/components/index' // @ 替代src未生效,待处理===> 未安装 path 插件
import '@/styles/index.scss' // 全局样式
// 引入路由
import router from '@/router'
import pinia from '@/store';

const app = createApp(App)
app.use(ElementPlus, {
  // eslint-disable-next-line prettier/prettier
  locale: zhCn,
})
app.use(gloablComponent)
app.use(pinia)
// 引入路由
app.use(router)
app.mount("#app")
